Searched hist:d59cb66d (Results 1 – 2 of 2) sorted by relevance
/qemu/ |
H A D | blockjob.c | d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com> d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com> d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com> d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com> d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
/qemu/block/ |
H A D | mirror.c | d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com> d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com> d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com> d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com> d59cb66d Mon Sep 26 09:32:09 GMT 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> blockjob: protect iostatus field in BlockJob struct
iostatus is the only field (together with .job) that needs protection using the job mutex.
It is set in the main loop (GLOBAL_STATE functions) but read in I/O code (block_job_error_action).
In order to protect it, change block_job_iostatus_set_err to block_job_iostatus_set_err_locked(), always called under job lock.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20220926093214.506243-17-eesposit@redhat.com> [kwolf: Fixed up type of iostatus] Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|